<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//http://www.tp6.com/think
Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');
Route::get('index', 'index/index');

//http://www.tp6.com:82/getInfo
Route::get('getInfo', 'index/getInfo');

Route::post('update', 'index/update');

Route::get('search', 'index/search');

Route::get('typeChange', 'index/typeChange');



Route::group(function () {
    Route::group('index', function () {


        Route::post('login', 'index/login');

        Route::post('add', 'index/add');

        Route::post('log', 'index/log');

        //导出
        Route::get('export', 'index/export');
        //导入
        Route::post('import', 'index/import');
        //压缩文件下载
        Route::get('zipDownload', 'index/zipDownload');

        //创建数据库 表
        Route::get('createDatabase', 'index/createDatabase');
    });
});